﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Engine.Dtd.Schema {
    internal static class DContentModelExtension {
        public static bool HasOnlyOneModelGroup(this DContentModel model) {
            if (model.Groups.Count == 1)
                return true;
            else {
                for (int i = 0; i < model.Groups.Count; i++)
                    if (model.Groups[i].IsModelGroups())
                        return false;
                return true;
                }
            }

        public static bool HasExclusionExceptions(this DContentModel model) {
            return model.Exclusions != DContentModel.DefaultExclusions;
            }
        }
    }
